import { DateUtils } from "yao-dateutils";
import md5 from "js-md5";

export class IDBuilder {
  public static GetIDString(code = "test code"): string {
    let id = "";
    const now = Date.now();
    id += DateUtils.format(new Date(now), "yyyyMMddHHmmss");
    id += md5(now + "&" + code).substr(0,6)
    return id;
  }
}
